package com.easy.bean;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@EqualsAndHashCode
@NoArgsConstructor
public class Category {
    
@TableId
    private Integer id;
    private String name;
    private String description;
    private String imageurl;
    private Integer isactive;
    private String created;
    private String updated;
    private Integer parentid;
    private Integer level;
    private Integer sortorder;
    @TableLogic(value = "0", delval = "1")
    private Integer isdel;
    @TableField(exist = false)
    private List<Category> children;

}
